package com.irdstudio.efp.esb.api.rest.yed.resp;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import com.irdstudio.efp.esb.service.bo.resp.sed.repay.RespLoanRepayResultQryBean;

import java.io.Serializable;

/**
 * 需求编号：xxxxxx<br/>
 * 问题编号：<br/>
 * 功能描述：贷款还款结果查询接口响应实体类<br/>
 * 创建时间：2020/8/3
 * @Author tiankg
 * @Version 1.0
 * @Since 1.0
 */
public class RespRepayResultYedBean implements Serializable {

    private static final long serialVersionUID = 1L;

    //查询状态  0-无 1-有
    @JSONField(name="QrySt")
    private String QrySt;

    //交易流水号
    @JSONField(name="TxnFlowNo")
    private String TxnFlowNo;

    //交易机构号
    @JSONField(name="TxnBrId")
    private String TxnBrId;

    //柜员所属机构号
    @JSONField(name="TlrAtchOrgNo")
    private String TlrAtchOrgNo;

    //交易日期  YYYYMMDD
    @JSONField(name="RetOrigTxnDt")
    private String RetOrigTxnDt;

    //交易时间  HHMMSS
    @JSONField(name="RetOrigTxnTm")
    private String RetOrigTxnTm;

    //渠道标志
    @JSONField(name="ChanFlg")
    private String ChanFlg;

    //全局流水号
    @JSONField(name="GlblSrlNo")
    private String GlblSrlNo;

    //提供方系统编号  （放在系统头了）
    @JSONField(name="PvdrSysID")
    private String PvdrSysID;

    //业务流水号
    @JSONField(name="BizSrlNo")
    private String BizSrlNo;

    //客户号
    @JSONField(name="ClntNo")
    private String ClntNo;

    //平台ID
    @JSONField(name="PlafmID")
    private String PlafmID;

    //平台用户ID
    @JSONField(name="PlafmUsrID")
    private String PlafmUsrID;

    //交易日期 YYYYMMDD
    @JSONField(name="TransDt")
    private String TransDt;

    //法人
    @JSONField(name="Company")
    private String Company;

    //交易状态  1：待处理 2：处理中 3：成功 4：失败 5：未知
    @JSONField(name="TxnStCd")
    private String TxnStCd;

    // 互金返回字符窜
    @JSONField(name = "TxnRsltInf")
    private String TxnRsltInf;

    public static class TxnRsltInfBean {
        // 发放号
        private String acctSeqNo;
        // 贷款号
        private String baseAcctNo;
        // 交易参考号
        private String reference;

        public String getAcctSeqNo() {
            return acctSeqNo;
        }

        public void setAcctSeqNo(String acctSeqNo) {
            this.acctSeqNo = acctSeqNo;
        }

        public String getBaseAcctNo() {
            return baseAcctNo;
        }

        public void setBaseAcctNo(String baseAcctNo) {
            this.baseAcctNo = baseAcctNo;
        }

        public String getReference() {
            return reference;
        }

        public void setReference(String reference) {
            this.reference = reference;
        }
    }
    public String getQrySt() {
        return QrySt;
    }

    public void setQrySt(String qrySt) {
        QrySt = qrySt;
    }

    public String getTxnFlowNo() {
        return TxnFlowNo;
    }

    public void setTxnFlowNo(String txnFlowNo) {
        TxnFlowNo = txnFlowNo;
    }

    public String getTxnBrId() {
        return TxnBrId;
    }

    public void setTxnBrId(String txnBrId) {
        TxnBrId = txnBrId;
    }

    public String getTlrAtchOrgNo() {
        return TlrAtchOrgNo;
    }

    public void setTlrAtchOrgNo(String tlrAtchOrgNo) {
        TlrAtchOrgNo = tlrAtchOrgNo;
    }

    public String getRetOrigTxnDt() {
        return RetOrigTxnDt;
    }

    public void setRetOrigTxnDt(String retOrigTxnDt) {
        RetOrigTxnDt = retOrigTxnDt;
    }

    public String getRetOrigTxnTm() {
        return RetOrigTxnTm;
    }

    public void setRetOrigTxnTm(String retOrigTxnTm) {
        RetOrigTxnTm = retOrigTxnTm;
    }

    public String getChanFlg() {
        return ChanFlg;
    }

    public void setChanFlg(String chanFlg) {
        ChanFlg = chanFlg;
    }

    public String getGlblSrlNo() {
        return GlblSrlNo;
    }

    public void setGlblSrlNo(String glblSrlNo) {
        GlblSrlNo = glblSrlNo;
    }

    public String getPvdrSysID() {
        return PvdrSysID;
    }

    public void setPvdrSysID(String pvdrSysID) {
        PvdrSysID = pvdrSysID;
    }

    public String getBizSrlNo() {
        return BizSrlNo;
    }

    public void setBizSrlNo(String bizSrlNo) {
        BizSrlNo = bizSrlNo;
    }

    public String getClntNo() {
        return ClntNo;
    }

    public void setClntNo(String clntNo) {
        ClntNo = clntNo;
    }

    public String getPlafmID() {
        return PlafmID;
    }

    public void setPlafmID(String plafmID) {
        PlafmID = plafmID;
    }

    public String getPlafmUsrID() {
        return PlafmUsrID;
    }

    public void setPlafmUsrID(String plafmUsrID) {
        PlafmUsrID = plafmUsrID;
    }

    public String getTransDt() {
        return TransDt;
    }

    public void setTransDt(String transDt) {
        TransDt = transDt;
    }

    public String getCompany() {
        return Company;
    }

    public void setCompany(String company) {
        Company = company;
    }

    public String getTxnStCd() {
        return TxnStCd;
    }

    public void setTxnStCd(String txnStCd) {
        TxnStCd = txnStCd;
    }

    public String getTxnRsltInf() {
        return TxnRsltInf;
    }
    public void setTxnRsltInf(String txnRsltInf) {
        TxnRsltInf = txnRsltInf;
    }
    public RespLoanRepayResultQryBean.TxnRsltInfBean parseTxnRsltInf(){
        return JSONObject.parseObject(TxnRsltInf, RespLoanRepayResultQryBean.TxnRsltInfBean.class);
    }


}
